import type { AppRouteModule } from '/@/router/types'

import { LAYOUT } from '/@/router/constant'

const user: AppRouteModule = {
    path: '/user',
    name: 'User',
    component: LAYOUT,
    redirect: '/user/admin',
    meta: {
        icon: 'noto:bust-in-silhouette',
        title: '用户管理',
    },
    children: [
        {
            path: 'user',
            name: 'UserList',
            component: () => import('/@/views/user/user/list.vue'),
            meta: {
                title: '用户列表',
                icon: 'noto:busts-in-silhouette',
            },
        },
        {
            path: 'admin',
            name: 'AdminList',
            component: () => import('/@/views/user/admin/list.vue'),
            meta: {
                title: '管理员列表',
                icon: 'noto-man-mechanic',
            },
        },
    ],
}

export default user
